<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%-- 
    Document   : mainPage
    Created on : 11.12.2011, 18:47:23
    Author     : David
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" language="java"%>
<jsp:useBean id="integraceBean" scope="session" type="cz.vse.integrace.iag.IntegracePageBean"/>

<!doctype html>
<html>
    <script type="text/JavaScript">
        function timedRefresh(timeoutPeriod) {
            if(${integraceBean.zobrazPostup})
            setTimeout("window.location.href = 'integrace?action=prubehSynch';",timeoutPeriod);
        }
    </script>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Integrace Google kontakty s SQL databází v cloudu</title>
    </head>
</head>
<body onload="JavaScript:timedRefresh(2500);">
<body>
<center>

    <table cellspacing="10">
        <tr valign="top">
            <td colspan="2">
                <h1>Integrace Google kontakty s SQL databází v cloudu</h1>
            </td>
        </tr>
        <tr>
            <td valign="top">

                <h3>Menu</h3><br>
                <a href="integrace?action=stav">Stav</a><br>
                <a href="integrace?action=synchronizace">Synchronizace</a><br>
                <a href="integrace?action=novyZam">Nový zaměstnanec</a><br>
                <a href="integrace?action=noveOdd">Nové oddělení</a><br>
                <a href="integrace?action=zamestnanci">Zaměstnanci</a><br>
                <a href="integrace?action=napoveda">Nápověda</a><br>
            </td>
            <td valign="top">
                <%
                 switch (integraceBean.getObsah()) {
                  case STAV:%><%@include file="WEB-INF/jspf/stav.jspf"%><%;
                       break;
                  case SYNCHRONIZACE:%><%@include file="WEB-INF/jspf/synchronizace.jspf"%><%;
                       break;
                  case NOVY_ZAMESTNANEC:%><%@include file="WEB-INF/jspf/novyZam.jspf"%><%;
                       break;
                  case NOVE_ODDELENI:%><%@include file="WEB-INF/jspf/noveOddeleni.jspf"%><%;
                       break;
                  case ZAMESTNANCI:%><%@include file="WEB-INF/jspf/zamestnanci.jspf"%><%;
                       break;
                  case NAPOVEDA:%><%@include file="WEB-INF/jspf/napoveda.jspf"%><%;
                       break;
                  }
                %>
            </td>
        </tr>
    </table>
</center>
</body>
</html>
